Show:

Q textfill Class

Adjusts the font size of the context text until it fills the element's width and height

Constructor

Q textfill

(
  • [options]
)

Parameters:

  • [options] Object optional

    options object that contains function parameters

    • [maxFontPixels] Number optional

      Maximum size of text font, set this if your text container is large and you don't want to have extra large text on page

    • [maxLines=null] Number optional

      Maximum number of lines, set this if you'd like to have a maximum number of lines.

    • [refreshOnLayout=true] Boolean optional

      Whether to refresh the textfill on any layout change that affects its container

    • [fillPadding=false] Boolean optional

      Whether to have the text extend into the padding as well

Item Index